package com.newcoder.community.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;
@Data
@NoArgsConstructor

public class LoginTicket {
    private int id;
    private int userId;
    private String ticket;
    private int status;
    private Date expired;
    public LoginTicket(int userId,String ticket,int status){
        this.userId=userId;
        this.ticket = ticket;
        this.status = status;
        this.expired =new Date(System.currentTimeMillis());
    }
}
